import 'package:flutter/material.dart';
import 'package:text_world/global.dart';

class TCard extends StatelessWidget {
  TCard({Key key, @required this.child}) : super(key: key);
  final Widget child;

  @override
  Widget build(BuildContext context) {
    return Container(
      margin: EdgeInsets.all(10),
      decoration: BoxDecoration(color: Global.cardBackgroundColor, boxShadow: [
        BoxShadow(
          color: Colors.black.withOpacity(0.05),
          offset: Offset(0, 15),
          blurRadius: 15,
          spreadRadius: 2,
        )
      ]),
      child: child,
    );
  }
}
